package com.cyy.decorator_pattern;

/**
 * 加盐（具体的装饰）
 */
public class Yan extends JiaLiao{
    private Qi qi;
    Yan(){}

    Yan(Qi qi){
        super(qi);
    }

    @Override
    public void show() {
        super.show();
        add();
    }

    private void add() {
        System.out.println("加盐");
    }
}
